﻿using STF.Blog.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STF.Blog.IService
{
    /// <summary>
    /// 等级表
    /// </summary>
    public interface ILevelService
    {
        public Task<int> AddLevelAsync(string title, string details);
        public Task<int> UpdateLevelAsync(int id, string title, string details);
        public Task<int> PutTrashAsync(int id);
        public Task<int> RestoreAsync(int id);
        public Task<int> DeleteLevelAsync(int id);
        public Task<List<LeveLDto>> GetAllLevelAsync(int deleteId = 1);
        public Task<List<LeveLDto>> GetByNameAsync(string title, int deleteId = 1);
        public Task<LeveLDto> GetByIdAsync(int id);
    }
}
